package com.stenio.fancat.mapper.Behavior;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stenio.fancat.domain.behavior.BehaviorComments;
import com.stenio.fancat.form.behavior.BehaviorCommentsForm;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BehaviorCommentsMapper extends BaseMapper<BehaviorComments> {

    //查询出最近的一条评论
    BehaviorComments selectRecent(String operationId);

    List<BehaviorComments> selectComments(String operationId);

    Integer deleteComments(String operationId);

    Integer deleteComment(Integer id,String userId);

    Integer insertComments(BehaviorCommentsForm behaviorCommentsForm);

}
